﻿#region Header
// ------------------------ Licence / Copyright ------------------------
// 
// ScrumTable for Scrum Meeting Support
// Copyright © HSR - Hochschule für Technik Rapperswil
// All Rights Reserved
// 
// Author:
//  Michael Gfeller Silvan Gehrig Patrick Boos
// 
// ---------------------------------------------------------------------
#endregion

#region Usings

using System.Xml.Serialization;
using ScrumTable.Common.Config.Xml;

#endregion

namespace ScrumTable.DL.Data.TFS.Bulk.Config.Driver
{
    /// <summary>
    /// Represents the Service node inside the DriverConfig.xml
    /// configuration file.
    /// </summary>
    [XmlType(TypeName = "Service")]
    public class Service : XmlConfigSectionBase
    {
        #region Declarations
        //--------------------------------------------------------------------
        // Declarations
        //--------------------------------------------------------------------

        #endregion

        #region Properties
        //--------------------------------------------------------------------
        // Properties
        //--------------------------------------------------------------------

        /// <summary>
        /// Gets true if the service  process is enabled.
        /// </summary>
        [XmlAttribute]
        public bool Enabled { get; set; }

        /// <summary>
        /// Gets the name of the service to configure.
        /// </summary>
        [XmlAttribute]
        public string Name { get; set; }

        #endregion

        #region Constructors / Destructor

        //--------------------------------------------------------------------
        // Constructors / Destructor
        //--------------------------------------------------------------------

        /// <summary>
        /// DO NOT USE THIS CONSTRUCTOR FROM GLOBAL CODE. THE SERIALIZER NEEDS
        /// A PUBLIC CONSTRUCTOR!
        /// </summary>
        public Service()
        {
        }

        #endregion

        #region Methods
        //--------------------------------------------------------------------
        // Methods
        //--------------------------------------------------------------------

        #endregion

        #region Events
        //--------------------------------------------------------------------
        // Events
        //--------------------------------------------------------------------

        #endregion
    }
}
